﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class BUS_PhanCongDT
    {
        public static bool KiemtraThemPhanCong(string makhoahoc, string maloaidt)
        {
            return DAO_PhanCongDT.KiemtraThemPhanCong(makhoahoc,maloaidt);
        }
        public static bool ChonDT01(string masv, string maloaidt)
        {
            return DAO_PhanCongDT.ChonDT01(masv, maloaidt);
        }
        public static bool KiemtraTaoPhanCong_MaDT(string makhoahoc, string maloaidt)
        {
            return DAO_PhanCongDT.KiemtraTaoPhanCong_MaDT(makhoahoc, maloaidt);
        }
        public static bool KiemtraTaoPhanCong_MaCN(string makhoahoc, string maloaidt)
        {
            return DAO_PhanCongDT.KiemtraTaoPhanCong_MaCN(makhoahoc, maloaidt);
        }
        public static bool PhanCongDeTai_LDT01(string maloaidt, string makhoahoc)
        {
            return DAO_PhanCongDT.PhanCongDeTai_LDT01(maloaidt, makhoahoc);
        }
        public static bool ThemPhanCongDeTai_LDT02(string makhoahoc, string maloaidt, DateTime ngayhethan)
        {
            return DAO_PhanCongDT.ThemPhanCongDeTai_LDT02(makhoahoc, maloaidt, ngayhethan);
        }
        public static bool TaoPhanCongTuDongDeTai_LDT02(string maloaidt, string makhoahoc)
        {
            return DAO_PhanCongDT.TaoPhanCongTuDongDeTai_LDT02(maloaidt, makhoahoc);
        }
        public static List<DTO_PhanCongDT> select_PhanCongDeTai_Nhom_MaDT(string madt)
        {
            return DAO_PhanCongDT.select_PhanCongDeTai_Nhom_MaDT(madt);
        }
        public static bool Update_Nhom_TheoMaDT_MaCN_Nhom(string madt, string macn, string nhom, string masv, string maloaidt)
        {
            return DAO_PhanCongDT.Update_Nhom_TheoMaDT_MaCN_Nhom(madt, macn, nhom, masv, maloaidt);
        }

        public static bool Update_NhomMoi_TheoMaDT_MaCN(string madt, string macn, string masv, string maloaidt)
        {
            return DAO_PhanCongDT.Update_NhomMoi_TheoMaDT_MaCN(madt, macn, masv, maloaidt);

        }
        public static bool Update_SV_TheoMaDT_MaCN(string macn, string masv, string maloaidt)
        {
            return DAO_PhanCongDT.Update_SV_TheoMaDT_MaCN(macn, masv, maloaidt);
        }
        public static bool KiemTra_MaDT_LoaiDT(string madt, string masv, string maloaidt)
        {
            return DAO_PhanCongDT.KiemTra_MaDT_LoaiDT(madt, masv, maloaidt);
        }
        public static bool Update_MaCN_TheoLDT02(string macn, string masv, string maloaidt)
        {
            return DAO_PhanCongDT.Update_MaCN_TheoLDT02(macn, masv, maloaidt);
        }
        public static List<DTO_PhanCongDT> Select_PhanCongDeTai_MaSV_LoaiDT(string masv, string maloaidt)
        {
            return DAO_PhanCongDT.Select_PhanCongDeTai_MaSV_LoaiDT(masv,maloaidt);
        }
        public static bool Kiemtra_PCDeTai_MaSV_MaCN(string masv, string macn, string maloaidt)
        {
            return DAO_PhanCongDT.Kiemtra_PCDeTai_MaSV_MaCN(masv, macn, maloaidt);
        }
        public static List<DTO_PhanCongDT> PCDT_Select_MaSV_DangLam(string masv)
        {
            return DAO_PhanCongDT.PCDT_Select_MaSV_DangLam(masv);
        }
        public static List<DTO_PhanCongDT> PCDT_Select_MaSV_DaLam(string masv)
        {
            return DAO_PhanCongDT.PCDT_Select_MaSV_DaLam(masv);
        }
        public static List<DTO_PhanCongDT> PCDT_Select_MaGV_QLy_SVDangLam(string magv)
        {
            return DAO_PhanCongDT.PCDT_Select_MaGV_QLy_SVDangLam(magv);
        }
        public static List<DTO_PhanCongDT> PCDT_Select_MaGV_QLy_SVDaLam(string magv)
        {
            return DAO_PhanCongDT.PCDT_Select_MaGV_QLy_SVDaLam(magv);
        }
        public static List<DTO_PhanCongDT> PCDT_Select_Chamdiem(string makhoahoc, string malop, string maloaidt, bool dalam_chualam)
        {
            return DAO_PhanCongDT.PCDT_Select_Chamdiem(makhoahoc, malop, maloaidt, dalam_chualam);
        }
        public static bool PhanCongTudong_Chon_LD01(string maloaidt, string masv)
        {
            return DAO_PhanCongDT.PhanCongTudong_Chon_LD01(maloaidt, masv);
        }
        public static List<DTO_PhanCongDT> SelectSinhVien_TrongPhanCong(string masv, string maloaidt)
        {
            return DAO_PhanCongDT.SelectSinhVien_TrongPhanCong(masv, maloaidt);
        }
        public static bool TaoPhanCongTuDongDeTai_LDT02_new(string maloaidt, string masv,string macn)
        {
            return DAO_PhanCongDT.TaoPhanCongTuDongDeTai_LDT02_new(maloaidt, masv,macn);
        }
        public static List<DTO_PhanCongDT> SelectSinhVien_TrongPhanCong_LDT02(string masv, string macn, string maloaidt)
        {
            return DAO_PhanCongDT.SelectSinhVien_TrongPhanCong_LDT02(masv, macn,maloaidt);
        }
        public static List<DTO_PhanCongDT> PCDT_Select_Chamdiem_GV(string magv, string makhoahoc, string malop, string maloaidt, bool dalam_chualam)
        {
            return DAO_PhanCongDT.PCDT_Select_Chamdiem_GV(magv, makhoahoc, malop, maloaidt, dalam_chualam);
        }
        public static bool ThemPhanCongDeTai_LDT02_new(string masv, string maloaidt, string macn)//tiny tinh
        {
            return DAO_PhanCongDT.ThemPhanCongDeTai_LDT02_new(masv, maloaidt, macn);
        }
        public static bool ThemPhanCongDeTai_LDT03(string maloaidt, string masv, string madt)
        {
            return DAO_PhanCongDT.ThemPhanCongDeTai_LDT03(maloaidt, masv,madt);
        }
        public static bool ChonDT03(string masv, string maloaidt, string madt)
        {
            return DAO_PhanCongDT.ChonDT03(masv, maloaidt, madt);
        }
        public static bool UpdateMaDT_PhanCongDT_LDT02_new(int id, string Madt, string macn)
        {
            return DAO_PhanCongDT.UpdateMaDT_PhanCongDT_LDT02_new(id, Madt, macn);
        }
        public static bool Updata_MaDT_PhanCongDT_03(string Madt)
        {
            return DAO_PhanCongDT.Updata_MaDT_PhanCongDT_03(Madt);
        }
    
    }
}
